# common.mk
#
# @author HuangRuiGuang
# @date 2012-3-13

# directories
HERM_HOME = $(HOME)/Documents/hades/server/dep/herm
HERM_BUILD_DIR = $(HERM_HOME)/build
HERM_BIN_DIR = $(HERM_HOME)/run/bin
HERM_INC_DIR = $(HERM_HOME)/..
HERM_LIB_DIR = $(HERM_HOME)/build/lib
HERM_USR_LIB_DIR = /usr/lib/x86_64-linux-gnu
HERM_TOOLS = $(HERM_HOME)/run/tool

# compiler and link name
CXX = g++
LD = g++

# pp option
CPPFLAGS = 

# CXX compiler option
CXXFLAGS = -c
ifeq "$(debug)" "no"
	CXXFLAGS += -O2
else
	CXXFLAGS += -g
endif

CXXFLAGS += -std=c++0x -Wunused-parameter -Wall -Wextra -pipe -D_NEW_LIC -D_GNU_SOURCE -D_REENTRANT -fPIC
CXXFLAGS += -I$(HERM_INC_DIR)

# link option 
LDFLAGS = -rdynamic -L$(HERM_LIB_DIR) 
LIBS = -lpthread

